package cn.echo.ecc.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.aspectj.lang.annotation.DeclareAnnotation;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginDto {

    @NotEmpty(message = "参数不能为空！")
    private String username;

    @NotEmpty(message = "参数不能为空！")
    private String password;

    @NotNull(message = "参数不能为空！")
    private Integer type;

}
